-- GENERATED SPELL FOR [Strashaz Warrior] --


function spell0_4364(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4364', 10348, 1)
end

function spell1_4364(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4364', 5287, 1)
end

function Sorts_4364(pUnit, Event)
local choix_sorts_4364 = math.random(0, 1)
if choix_sorts_4364 == 0 then
pUnit:RegisterEvent('spell0_4364', 1, 1)
end
if choix_sorts_4364 == 1 then
pUnit:RegisterEvent('spell1_4364', 1, 1)
end
end

function mob4364_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4364', math.random(1500, 3000), 1)
end

function mob4364_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4364_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4364_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4364, 1, 'mob4364_Action')
RegisterUnitEvent(4364, 2, 'mob4364_Leave')
RegisterUnitEvent(4364, 3, 'mob4364_Kill')
RegisterUnitEvent(4364, 4, 'mob4364_Die')
